package com.genokon.consumer.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author by baichaoda
 * @date 2020/7/28 14:34
 */
@Component
public class EchoServiceFallbackFactory implements FallbackFactory<EchoServiceFallbackImpl> {
    @Override
    public EchoServiceFallbackImpl create(Throwable throwable) {
        return new EchoServiceFallbackImpl(throwable);
    }
}
